package org.jeecg.modules.scm.api.factory;

import feign.hystrix.FallbackFactory;
import org.jeecg.modules.scm.api.ScmFinaApplyApi;
import org.jeecg.modules.scm.api.fallback.ScmFinaApplyFallback;
import org.springframework.stereotype.Component;

/**
 * @Author: zzq
 */
@Component
public class ScmFinaApplyApiFallbackFactory implements FallbackFactory<ScmFinaApplyApi> {
    @Override
    public ScmFinaApplyApi create(Throwable throwable) {
        ScmFinaApplyFallback scmFinaApplyFallback = new ScmFinaApplyFallback();
        scmFinaApplyFallback.setCause(throwable);
        return scmFinaApplyFallback;
    }
}
